package se.thoka.twt.client.item;

import se.thoka.twt.shared.item.ItemServiceAsync;


public abstract class ListItemView<T extends Item<T>> extends ItemView<T> {
	
	private ListItemViewRenderer<T> renderer;

	public ListItemView() {}
	
	public ListItemView(ItemServiceAsync<T> service) {
		super(service);
	}

	@Override
	protected ListItemViewRenderer<T> getViewRenderer() {
		if (renderer == null) {
			renderer = new ListItemViewRenderer<T>();
		}
		
		return renderer;
	}

}
